<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %> 
 
 
<jsFileName><!--js/pageJS/useradmin/page_modulePermissionConfig.js--></jsFileName>
<s:form name="modulePermissionConfigFormName" id="modulePermissionConfigFormId" method="post" action="auth/auth.do">
	<s:hidden id="mdid" name="mdid"/>
	<input type="hidden" name="userIds"/>
	<input type="hidden" name="deptIds"/>
	<input type="hidden" name="groupIds"/>
	<table class="form-table">
	  <tbody>
	  <tr>
	  	<th style="width: 150px">用户权限：</th>
	  	<td>
	  		<c:if test="${fn:length(authUsers)==0}">
	  			<select id="permissionUsers" name="permissionUsers" style="display:none"></select>
	  		</c:if>
	  		<c:if test="${fn:length(authUsers)>0}">
	  			<s:select id="permissionUsers" name="permissionUsers" list="%{model.authUsers}" listKey="authid" listValue="name"/>
	  		</c:if>
		  	<input type="button" value="添加" class="btn-short" onclick="Ext.milan.pagejs.page_modulepermissionconfig.selectuser(this,'permissionUsers')"/>
		  	<c:if test="${fn:length(authUsers)==0}">
		  	<input style="display:none" type="button" value="删除" class="btn-short" onclick="Ext.milan.pagejs.page_modulepermissionconfig.deluser(this,'permissionUsers')" id="permissionUsers_DelBtn" name="permissionUsers_DelBtn"/>
		  	<input style="display:none" type="button" value="清空" class="btn-short" onclick="Ext.milan.pagejs.page_modulepermissionconfig.clearOption('permissionUsers')" id="permissionUsers_ClearBtn" name="permissionUsers_ClearBtn"/>
		  	</c:if>
		  	<c:if test="${fn:length(authUsers)>0}">
		  	<input type="button" value="删除" class="btn-short" onclick="Ext.milan.pagejs.page_modulepermissionconfig.deluser(this,'permissionUsers')" id="permissionUsers_DelBtn" name="permissionUsers_DelBtn"/>
		  	<input type="button" value="清空" class="btn-short" onclick="Ext.milan.pagejs.page_modulepermissionconfig.clearOption('permissionUsers')" id="permissionUsers_ClearBtn" name="permissionUsers_ClearBtn"/>
		  	</c:if>
	  	</td>
	  </tr>
	  <tr>
	  	<th>组权限：</th>
	  	<td>
	  		<c:if test="${fn:length(authGroups)==0}">
		  	<select id="permissionPriGroups" name="permissionPriGroups" style="display:none"></select>
		  	</c:if>
		  	<c:if test="${fn:length(authGroups)>0}">
	  			<s:select id="permissionPriGroups" name="permissionPriGroups" list="%{model.authGroups}" listKey="authid" listValue="name"/>
	  		</c:if>
		  	<input type="button" value="添加" class="btn-short" onclick="Ext.milan.pagejs.page_modulepermissionconfig.selectPriGroup(this,'permissionPriGroups')"/>
		  	<c:if test="${fn:length(authGroups)==0}">
		  	<input style="display:none" type="button" value="删除" class="btn-short" onclick="Ext.milan.pagejs.page_modulepermissionconfig.deluser(this,'permissionPriGroups')" id="permissionPriGroups_DelBtn" name="permissionPriGroups_DelBtn"/>
		  	<input style="display:none" type="button" value="清空" class="btn-short" onclick="Ext.milan.pagejs.page_modulepermissionconfig.clearOption('permissionPriGroups')" id="permissionPriGroups_ClearBtn" name="permissionPriGroups_ClearBtn"/>
		  	</c:if>
		  	<c:if test="${fn:length(authGroups)>0}">
		  	<input type="button" value="删除" class="btn-short" onclick="Ext.milan.pagejs.page_modulepermissionconfig.deluser(this,'permissionPriGroups')" id="permissionPriGroups_DelBtn" name="permissionPriGroups_DelBtn"/>
		  	<input type="button" value="清空" class="btn-short" onclick="Ext.milan.pagejs.page_modulepermissionconfig.clearOption('permissionPriGroups')" id="permissionPriGroups_ClearBtn" name="permissionPriGroups_ClearBtn"/>
		  	</c:if>
	  	</td>
	  </tr>
	  </tbody>
	</table>
	<div class="win-btn-panel">
		<a class="btn_short" class="btn_short" href="javascript:void(0)" 
			onclick="Ext.milan.pagejs.page_modulepermissionconfig.save('modulePermissionConfigFormId')">确 定</a>
		<a class="btn_short" class="btn_short" href="javascript:void(0)" 
			onclick="Ext.milan.pagejs.page_modulepermissions.hideWin()">取 消</a>
	</div>
</s:form>

